home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / nosvw304.zip / NOSGAS.ZIP / PUBLIC / NOSVIEW / ATTACH < prev    next >
Text File  |  1992-12-31  |  27KB  |  648 lines

  1. ======                                              NOSview [301]
  2. attach
  3. ======
  4.  
  5.  
  6. This section details the 'attach' commands for the various
  7. hardware and software interface drivers.  Not all of these
  8. drivers may be configured into every NOS release.  A list of the
  9. available types on a particular release may be obtained with the
  10. 'attach ?' command.
  11.  
  12. Some parameters are accepted by several drivers. They are:
  13.  
  14. ---------
  15. <bufsize>
  16. ---------
  17. For asynchronous devices (e.g. COM ports operating in SLIP or NRS
  18. mode) this parameter specifies the size of the receiver's ring
  19. buffer.  It should be large enough to hold incoming data at full
  20. line speed for the longest time that the system may be busy in
  21. MS-DOS or the BIOS doing a slow I/O operation (e.g. to a floppy
  22. disk).  A kilobyte is usually more than sufficient.
  23.  
  24. For synchronous devices (e.g. the scc, hs, pc100, hapn and drsi
  25. interfaces operating in HDLC mode), the <bufsize> parameter
  26. specifies the largest frame that may be received on the
  27. interface.  This should be set by mutual agreement among stations
  28. sharing the channel, and it is important that it is set
  29. correctly.
  30.  
  31. To do this, you must know the size of the largest possible frame
  32. that can be received.  The AX.25 'paclen' parameter controls only
  33. the size of the data field in an I-frame and not the total size
  34. of the frame as it appears on the air.  The AX.25 specification
  35. allows up to 8 digipeaters, so the largest possible frame is
  36. 'paclen'+72 bytes.  You should make <bufsize> at least this
  37. large.
  38.  
  39. So for standard AX.25 with a maximum I-frame data size of 256
  40. bytes, <bufsize> should be at least 328 (i.e. 256+72).  A
  41. suggested value of 1024 bytes will therefore provide an adequate
  42. safety margin.
  43.  
  44. On higher speed channels (e.g. 56kb/s) larger values (e.g. 2K
  45. bytes) will provide much better performance and allow full-sized
  46. Ethernet packets to be carried without fragmentation.
  47.  
  48. Another important consideration is that the more recent versions
  49. of NOS improve interrupt response by maintaining a special pool
  50. of buffers for use by the receive routines.  These buffers are
  51. currently fixed in size to 2048 bytes and this can be changed
  52. only by editing "config.h" and recompiling NOS.
  53.  
  54. This limits <bufsize>; in fact, attempting to set a larger value
  55. may cause the driver not to work at all.  This situation can be
  56. detected by running the memory status command and looking for a
  57. non-zero count of "Ibuffail" events, although these events can
  58. also occur occasionally during normal operation.
  59.  
  60.  
  61. -----------
  62. <interface>
  63. -----------
  64. The name (an arbitrary character string) to be assigned to this
  65. interface. It is used to refer to the interface by many other
  66. commands, including:
  67.  
  68.         axc25 bc          dialer           rarp
  69.         bbs Gateway       ifconfig         route
  70.         comm              mode             tip
  71.         connect           netrom           trace
  72.         detach            param
  73.  
  74.  
  75. -----------
  76. <ioaddress>
  77. -----------
  78. The base address of the interface's control registers, in
  79. hexadecimal.
  80.  
  81.  
  82. -----
  83. <mtu>
  84. -----
  85. The Maximum Transmission Unit (MTU) size, in bytes.  Datagrams
  86. larger than this limit will be fragmented at the IP layer into
  87. smaller pieces.
  88.  
  89. IP-level fragmentation often makes it possible to interconnect
  90. two dissimilar networks, but it is best avoided whenever
  91. possible.  One reason is that when a single IP fragment is lost,
  92. all other fragments belonging to the same datagram are
  93. effectively also lost and the entire datagram must be
  94. retransmitted by the source.
  95.  
  96. Even without loss, fragments require the allocation of temporary
  97. buffer memory at the destination, and it is never easy to decide
  98. how long to wait for missing fragments before giving up and
  99. discarding those that have already arrived.  A reassembly timer
  100. controls this process.  (See the 'ip rtimer' command).
  101.  
  102. Most subnetworks that carry IP have MTUs of 576 bytes or more, so
  103. interconnecting them with subnetworks having smaller values can
  104. result in considerable fragmentation.  For this reason, IP
  105. implementors working with links or subnets having unusually small
  106. packet size limits are encouraged to use transparent
  107. fragmentation, that is, to devise schemes to break up large IP
  108. datagrams into a sequence of link or subnet frames that are
  109. immediately reassembled on the other end of the link or subnet
  110. into the original, whole IP datagram without the use of IP-level
  111. fragmentation.
  112.  
  113. Such a scheme is provided in AX.25 Version 2.1.  It can break a
  114. large IP or NET/ROM datagram into a series of 'paclen' sized
  115. AX.25 segments (not to be confused with TCP segments), one per
  116. AX.25 I-frame, for transmission and reassemble them into a single
  117. datagram at the other end of the link before handing it up to the
  118. IP or NET/ROM module.
  119.  
  120. The segmentation procedure is a new feature in AX.25 and is
  121. unfortunately not yet widely implemented; in fact, NOS is so far
  122. the only known implementation.  This creates some inter-
  123. operability problems between NOS and non-NOS nodes; in
  124. particular, standard NET/ROM nodes being used to carry IP
  125. datagrams.
  126.  
  127. For AX.25 UI-frames, MTU limits the size of the information
  128. field.
  129.  
  130. For AX.25 I-frames, however, the AX.25 'paclen' parameter is also
  131. relevant.  If the datagram or fragment is still larger than
  132. 'paclen', it is also fragmented at the AX.25 level (as opposed to
  133. the IP level) before transmission.  See the 'ax25 paclen' command
  134. for further information.
  135.  
  136. Each fragment of a datagram has its own IP header, and is handled
  137. by the network as if it were a distinct IP datagram.  When it
  138. arrives at the destination it is held by the IP layer until all
  139. the other fragments belonging to the original datagram have
  140. arrived.  Then they are reassembled back into the complete,
  141. original IP datagram.
  142.  
  143. The minimum acceptable interface MTU is 28 bytes: 20 bytes for
  144. the IP header, plus 8 bytes of data.
  145.  
  146. There is no default MTU in NOS; it must be explicitly specified
  147. for each interface as part of the 'attach' command.
  148.  
  149. TCP/IP header overhead considerations similar to those of the
  150. AX.25 layer when setting 'paclen' apply when choosing an MTU.
  151. However, certain subnetwork types supported by NOS have well-
  152. established MTUs, and these should always be used unless you know
  153. what you're doing.  The recommended MTUs for these network types
  154. are:
  155.  
  156. Ethernet: 1500 bytes
  157. ARCNET:   508 bytes
  158. PPP:      The MTU for PPP is automatically negotiated, and
  159.           defaults to 1500 bytes.
  160.  
  161. Other subnet types, including SLIP and AX.25, are not as well
  162. standardized.
  163.  
  164. SLIP:   Has no official MTU, but the most common implementation
  165. (for BSD UNIX) uses an MTU of 1006 bytes.  Although NOS has no
  166. hard-wired limit on the size of a received SLIP frame, this is
  167. not true for other systems.  Interoperability problems may
  168. therefore result if larger MTUs are used in NOS.
  169.  
  170. AX.25:  Choosing an MTU for an AX.25 interface is more complex.
  171. When the interface operates in datagram (UI-frame) mode, the
  172. 'paclen' parameter does not apply.  The MTU effectively becomes
  173. the 'paclen' of the link.  However, as mentioned earlier, large
  174. packets sent on AX.25 connections are automatically segmented
  175. into I-frames no larger than 'paclen' bytes.  Unfortunately, as
  176. also mentioned earlier, NOS is so far the only known
  177. implementation of the new AX.25 segmentation procedure.  This is
  178. fine as long as all of the NET/ROM nodes along a path are running
  179. NOS, but since the main reason NOS supports NET/ROM is to allow
  180. use of existing NET/ROM networks, this is unlikely.
  181.  
  182. So it is usually important to avoid AX.25 segmentation when
  183. running IP over NET/ROM.  The way to do this is to make sure that
  184. packets larger than 'paclen' are never handed to AX.25.  A
  185. NET/ROM transport header is 5 bytes long and a NET/ROM network
  186. header takes 15 bytes, so 20 bytes must be added to the size of
  187. an IP datagram when figuring the size of the AX.25 I-frame data
  188. field.
  189.  
  190. If 'paclen' is 256, this leaves 236 bytes for the IP datagram.
  191. This is the default MTU of the "netrom" pseudo-interface, so as
  192. long as 'paclen' is at least 256 bytes, AX.25 segmentation can't
  193. happen.
  194.  
  195. But if smaller values of 'paclen' are used, the netrom MTU must
  196. also be reduced with the 'ifconfig' command.
  197.  
  198. On the other hand, if you're running IP directly on top of AX.25,
  199. chances are all of the nodes are running NOS and support AX.25
  200. segmentation.  In this case there is no reason not to use a
  201. larger MTU and let AX.25 segmentation do its thing.  If you
  202. choose an MTU on the order of 1000-1500 bytes, you can largely
  203. avoid IP-level fragmentation and reduce TCP/IP-level header
  204. overhead on file transfers to a very low level.  And you are
  205. still free to pick whatever 'paclen' value is appropriate for the
  206. link.
  207.  
  208.  
  209. -------
  210. <speed>
  211. -------
  212. The speed on the NOS serial link (e.g. between the computer
  213. running NOS and the TNC) in bits per second (e.g. 4800).
  214.  
  215.  
  216. --------
  217. <vector>
  218. --------
  219. The interface's hardware interrupt (IRQ) vector, in hexadecimal.
  220.  
  221.  
  222. The individual 'attach' commands are now described:
  223. _________________________________________________________________
  224. attach 3c500 <ioaddress> <vector> arpa <interface> <qlen> <mtu>
  225.                                                      [<ipaddr>]
  226. _________________________________________________________________
  227. THIS COMMAND IS NOW OBSOLETE.
  228. Attach a 3Com 3C501 Ethernet interface.  <qlen> is the maximum
  229. allowable transmit queue length. If the <ipaddr> parameter is not
  230. given, the value associated with a prior ip address command will
  231. be used.
  232.  
  233. The use of this driver is not recommended; use the 'packet'
  234. driver interface with the loadable 3C501 packet driver instead.
  235.  
  236. >> Example:  attach 3c500 0x300 3 arpa en0 5 1500
  237.  
  238.  
  239. _________________________________________________________________
  240. attach asy <ioaddress> <vector> ax25 | nrs | ppp | raw | slip
  241.              <interface> <buffers> <mtu> <speed> [<slip_options>]
  242. _________________________________________________________________
  243. Attach a standard PC COM port (asynchronous serial port), using
  244. the National 8250 or 16550A chip.  Standard values on the IBM PC
  245. and clones for <ioaddress> and <vector> are as follows:
  246.  
  247.      COM1:  0x3f8 and 4
  248.      COM2:  0x2f8 and 3
  249.  
  250. If the port uses a 16550A chip, it will be detected automatically
  251. and the FIFOs enabled.
  252.  
  253.  
  254. _________________________________________________________________
  255. attach asy <ioaddress> <vector>[c] ax25 <interface> <buffers>
  256.                                                     <mtu> <speed>
  257. _________________________________________________________________
  258. Encapsulate IP datagrams within an AX.25 frame and precede with a
  259. KISS data header before SLIP encoding.
  260.  
  261. Either UI- (connectionless) or I- (connection-oriented) AX.25
  262. frames can be used; see the 'mode' command for details.
  263. By default, IP datagrams are sent in UI-frames.
  264.  
  265. NOS can in theory support as many serial ports as you can fit on
  266. the machine.  It does support shared interrupts, although you
  267. have to specify this by appending the suffix 'c' (chain) to the
  268. IRQ <vector> number in the 'attach' line.  This tells the
  269. driver's interrupt vector to jump to the vector previously
  270. installed on that IRQ number when the handler is the 'attach'
  271. line.  
  272.  
  273. This tells the driver's interrupt vector to jump to the
  274. vector previously installed on that IRQ number when the handler
  275. is done.  When you attach a series of devices on the same
  276. interrupt vector, the last one attached is the first one called
  277. when the interrupt occurs.
  278.  
  279. *******  You must give the 'ax25 mycall' command BEFORE attaching
  280. *******  the interface.
  281.  
  282.  
  283. >> Example:  To attach the COM2 port to operate in AX.25 mode
  284. with an MTU of 576 bytes at 4800 bits/sec with a KISS TNC,
  285. calling it 'tnc0':
  286.  
  287.             ax25 mycall NS9BOB-5
  288.             attach asy 0x2f8 3 ax25 tnc0 1024 576 4800
  289.  
  290.  
  291. _________________________________________________________________
  292. attach asy <ioaddress> <vector> nrs <interface> <buffers> <mtu>
  293.                                                         <speed>
  294. _________________________________________________________________
  295. Use the NET/ROM asynchronous framing technique for communication
  296. with a local NET/ROM TNC.
  297.  
  298. >> Example:  attach asy 0x3f8 4 nrs nr0 1024 576 4800
  299.  
  300.  
  301. _________________________________________________________________
  302. attach asy <ioaddress> <vector> ppp <interface> <buffers> <mtu>
  303.                                                         <speed>
  304. _________________________________________________________________
  305. Point-to-Point-Protocol.  Encapsulates datagrams in an HDLC-like
  306. frame.  This is a new Internet standard for point-to-point
  307. communication, compatible with CCITT standards.
  308.  
  309. >> Example:
  310.  
  311.  
  312. _________________________________________________________________
  313. attach asy <ioaddress> <vector> raw <interface> <buffers> <mtu>
  314.                                                         <speed>
  315. _________________________________________________________________
  316. Raw serial line without protocol, special for lpd server.
  317.  
  318. >> Example:
  319.  
  320.  
  321. _________________________________________________________________
  322. attach asy <ioaddress> <vector> slip <interface> <buffers> <mtu>
  323.                                         <speed> [<slip_options>]
  324. _________________________________________________________________
  325. Serial Line Internet Protocol.  Encapsulates IP datagrams
  326. directly in SLIP frames without a link header.  This is for
  327. operation on point-to-point lines and is compatible with 4.2BSD
  328. UNIX SLIP.
  329.  
  330. The <slip_options> are the characters 'c', 'r' and 'v':
  331.  
  332. 'c' enables RTS/CTS detection
  333. 'r' enables RLSD (Carrier Detect) physical line sensing
  334. 'v' enables Van Jacobson TCP/IP Header Compression
  335.  
  336. >> Example:  To attach the COM1 port to operate in point-to-point
  337. slip mode at 9600 baud, calling it 'sl0'.  A 1024-byte receiver
  338. ring buffer is allocated.  Outgoing packets larger than 256 bytes
  339. are fragmented.  RTS/CTS and carrier detection are used, together
  340. with header compression:
  341.  
  342.            attach asy 0x3f8 4 slip sl0 1024 256 9600 crv
  343.  
  344.  
  345. _________________________________________________________________
  346. attach axip <interface> <mtu> <their_host> <my_axip_callsign>
  347. _________________________________________________________________
  348. This creates an RFC1226-compatible AX.25 frame encapsulator for
  349. "wormhole" transmission of AX.25 frames over the Internet.  The
  350. wormhole appears to the AX.25 level as two digipeaters.
  351.  
  352. The parameter <their_host> is the Internet node name or IP
  353. address of the remote system at the other end of the wormhole.
  354.  
  355. The parameter <my_axip_callsign> is the AX.25 callsign this
  356. station is listening out for, for frames to digipeat.
  357.  
  358. Note that each attached axip interface should have a different
  359. callsign to listen to, and this should also be different from
  360. other callsigns used by this station.
  361.  
  362. For example, consider the scenario in the diagram below.  NS9BOB
  363. and NS9JIM are at opposite ends of an Internet wormhole, in this
  364. case represented by an Ethernet link.  Bob and Jim decide to use
  365. SSID -11 for their axip callsigns.
  366.  
  367. Stations AX9AAA and AX9BBB are ordinary AX.25 stations which wish
  368. to communicate via the wormhole.
  369.  
  370.  
  371.  
  372.       ___________________                     ___________________
  373.       |                 |                     |                 |
  374. axip: | NS9BOB-11 ....  |                     |  .... NS9JIM-11 |
  375.       |    :         :  |                     |  :         :    |
  376.   IP: | ns9bob       :  |                     |  :       ns9jim |
  377.       |    :         :  |  Internet Wormhole  |  :         :    |
  378. ax25: | NS9BOB-5    en0 ==========>============ en0    NS9JIM-5 |
  379.       |    :            |   AX9AAA>AX9BBB     |            :    |
  380.       |____:____________| v NS9BOB-5* NS9JIM-5|____________:____|
  381.            :tnc0                                       tnc0:
  382.            :                                               :
  383.       _____:____                                       ____:_____
  384.       |        |                                       |        |
  385.       | AX9AAA |                                       | AX9BBB |
  386.       |________|                                       |________|
  387. CONNECT AX9BBB V NS9BOB-11 NS9JIM-5             AX9AAA>AX9BBB
  388.                                            v NS9BOB-5* NS9JIM-11*
  389.  
  390.  
  391.  
  392.  
  393. To implement this setup, Bob requires the following NOS commands
  394. in his AUTOEXEC.NOS file:
  395.  
  396. -----------------------------------------------------------------
  397. ax25 mycall NS9BOB-5
  398. attach asy 0x3f8 4 ax25 tnc0 1024 576 4800
  399. ip address ns9bob
  400. route add ns9jim en0
  401. arp add ns9jim ether 00:11:22:33:44:55
  402. attach axip ai0 256 ns9jim NS9BOB-11
  403. -----------------------------------------------------------------
  404.  
  405. That is, in addition to the usual commands for setting up the
  406. tnc0 AX.25 interface, an IP 'route' command and an 'arp add'
  407. command are needed for the Ethernet wormhole, and the 'attach
  408. axip' command is required to implement AX.25 encapsulation.
  409.  
  410. Note that in Bob's 'attach axip' command, the hostname (ns9jim)
  411. is the name of the FAR end of the wormhole, and the axip callsign
  412. (NS9BOB-11) is that of the LOCAL station.
  413.  
  414. Jim's NOS entries will, of course, be a mirror image of Bob's.
  415.  
  416. Everything is now ready for AX9AAA to connect to AX9BBB.  The
  417. format of the connect command is:
  418.  
  419. -----------------------------------------------------------------
  420. CONNECT <destination> VIA <local_axip_call> <remote_ax25_mycall>
  421. -----------------------------------------------------------------
  422.  
  423. Thus in this scenario, AX9AAA gives the command:
  424.  
  425.     CONNECT AX9BBB VIA NS9BOB-11 NS9JIM-5
  426.  
  427. NS9BOB is listening for digipeater callsign NS9BOB-11.  On
  428. hearing this connect request, the axip code then converts NS9BOB-
  429. 11 to NS9BOB-5.  This is in readiness for the return trip.  In
  430. addition, the "Has-been-digipeated" bit (indicated by an asterisk
  431. in the diagram) is set.
  432.  
  433. The frame is then encapsulated in an IP packet and transmitted
  434. across the wormhole to Jim.
  435.  
  436. On arrival at NS9JIM, the axip code now de-capsulates the AX.25
  437. frame, and converts the second digipeater address (NS9JIM-5) to
  438. NS9JIM-11, also setting the "Has-been-digipeated" bit.
  439.  
  440. Finally the AX.25 frame emerges from NS9JIM, and arrives at
  441. AX9BBB with digipeater addresses NS9BOB-5 and NS9JIM-11.  After
  442. reversing the callsign order in the usual way, this is exactly
  443. what is required for the return trip to AX9AAA via the wormhole.
  444.  
  445.  
  446. _________________________________________________________________
  447. attach drsi <ioaddress> <vector> ax25 <interface> <bufsize> <mtu>
  448.                                      <ch_a_speed> <ch_b_speed>
  449. _________________________________________________________________
  450. N6TTO driver for the Digital Radio Systems PCPA 8530 card.  Since
  451. there are two channels on the board, two interfaces are attached.
  452. They will be named <interface> with 'a' and 'b' appended.
  453.  
  454. <bufsize> is the receiver buffer size in bytes; it must be larger
  455. than the largest frame to be received.
  456.  
  457. <ch_a_speed> and <ch_b_speed> are the speeds, in bits/sec, for
  458. the A and B channels respectively.
  459.  
  460.  
  461. _________________________________________________________________
  462. attach eagle <ioaddress> <vector> ax25 <interface> <bufsize>
  463.                                                <mtu> <speed>
  464. _________________________________________________________________
  465. WA3CVG/NG6Q driver for the Eagle Computer card (Zilog 8530).
  466.  
  467.  
  468. _________________________________________________________________
  469. attach hapn <ioaddress> <vector> ax25 <interface> <bufsize> <mtu>
  470.                                                    csma | full
  471. _________________________________________________________________
  472. KE3Z driver for the Hamilton Amateur Packet Network adapter
  473. (Intel 8273).  The 'csma|full' parameter specifies whether the
  474. port should operate in carrier sense multiple access (CSMA) mode
  475. or in full duplex.
  476.  
  477.  
  478. _________________________________________________________________
  479. attach hs <ioaddress> <vector> ax25 <interface> <bufsize> <mtu>
  480.                                       <key_up_delay> <p>
  481. _________________________________________________________________
  482. Attach a DRSI PCPA or Eagle Computer interface card using a
  483. special "high speed" 8530 driver.  This driver uses busy-wait
  484. loops to send and receive each byte instead of interrupts, making
  485. it usable with high speed modems (such as the WA4DSY 56kb/s
  486. modem) on slow systems.  This does have the side effect of
  487. "freezing" the system whenever the modem transmitter or receiver
  488. is active.
  489.  
  490. This driver can operate only in CSMA mode, and it is recommended
  491. that no other interfaces requiring small interrupt latencies be
  492. attached to the same machine.
  493.  
  494. The <key_up_delay> parameter specifies the transmitter keyup
  495. delay in byte time intervals.
  496.  
  497. The <p> value specifies the transmitter persistence value in the
  498. range 1-255; the corresponding slot time is fixed at one hardware
  499. clock tick, about 55 ms on the PC.
  500.  
  501. As with the other 8530 drivers, this driver actually attaches two
  502. interfaces, one for each 8530 channel.
  503.  
  504.  
  505. _________________________________________________________________
  506. attach kiss <existing_asy_interface> <port> <interface> [<mtu>]
  507. _________________________________________________________________
  508. The 'attach kiss' command enables a multiplexed TNC type to be
  509. used for second channel.  It is used to connect a second port to
  510. an already attached 'asy' interface.  It will copy most of the
  511. parameters of its parent port.
  512.  
  513. >> Example:  attach kiss tnc0 2 tnc1
  514.  
  515.  
  516. _________________________________________________________________
  517. attach netrom
  518. _________________________________________________________________
  519. Pseudo-driver for use with NET/ROM.
  520.  
  521.  
  522. _________________________________________________________________
  523. attach packet <vector> <interface> <txqlen> <mtu>
  524. _________________________________________________________________
  525. Driver for use with separate software packet drivers meeting the
  526. Packet Driver specification from FTP Software Inc.  The driver
  527. must have already been installed before the 'attach' command is
  528. given.  Packet drivers in the Ethernet, ARCNET, SLIP, SLFP, and
  529. KISS/AX.25 classes are supported.
  530.  
  531. <vector> is the software interrupt vector used for communication
  532. to the packet driver, and <txqlen> is the maximum number of
  533. packets that will be allowed on the transmit queue.
  534.  
  535. >> Example:  In AUTOEXEC.BAT, the driver for a Western Digital
  536. WD8003E Ethernet adapter can be installed with the command:
  537.  
  538.      WD8003E 0x60 2 0x240 0xd000
  539.  
  540. This means that the adapter uses software interrupt vector 0x60,
  541. IRQ 2, I/O address 0x240 and RAM base address 0xd000.
  542.  
  543. Then the NOS packet driver can be attached to the adapter driver
  544. with the command:
  545.  
  546.      attach packet 0x60 en0 8 1500
  547.  
  548.  
  549. _________________________________________________________________
  550. attach pc100 <ioaddress> <vector> ax25 <interface> <bufsize>
  551.                                                           <speed>
  552. _________________________________________________________________
  553. Driver for the PACCOMM PC-100 (Zilog 8530) card.  Only AX.25
  554. operation is supported.
  555.  
  556.  
  557. _________________________________________________________________
  558. attach pi
  559. _________________________________________________________________
  560. DMA-driven 8530 scc board from VE3IFB.
  561.  
  562.  
  563. _________________________________________________________________
  564. attach scc <devices> init <addr> <spacing> <Aoff> <Boff><Dataoff>
  565.           <intack> <vec> [p|r]<clock> [<hardware_type>] [<param>]
  566. _________________________________________________________________
  567. PE1CHL driver to initialize a generic SCC (8530) interface board
  568. prior to actually attaching it.
  569.  
  570. The parameters are as follows:
  571.  
  572. <devices> The number of SCC chips to support.
  573.  
  574. <addr> The base address of the first SCC chip (hex).
  575.  
  576. <spacing> The spacing between the SCC chip base addresses.
  577.  
  578. <Aoff> The offset from a chip's base address to its channel A
  579. control register.
  580.  
  581. <Boff> The offset from a chip's base address to its channel B
  582. control register.
  583.  
  584. <Dataoff> The offset from each channel's control register to its
  585. data register.
  586.  
  587. <intack> The address of the INTACK/Read Vector port.  If none,
  588. specify '0' to read from RR3A/RR2B.
  589.  
  590. <vec> The CPU interrupt vector for all connected SCCs.
  591.  
  592. <clock> The clock frequency (PCLK/RTxC) of all SCCs in hertz.
  593. Prefix with 'p' for PCLK, 'r' for RTxC clock (for baudrate
  594. generation).
  595.  
  596. <hardware_type>  Optional hardware type code.  The following
  597. values are currently supported:
  598.           1:  Eagle card
  599.           2:  PACCOMM PC-100
  600.           4:  PRIMUS-PC card (DG9BL)
  601.           8:  DRSI PCPA card.
  602.  
  603. <param> Optional extra parameter.  At present, this is used only
  604. with the PC-100 and PRIMUS-PC cards to set the modem mode.  The
  605. value 0x22 is used with the PC-100 and 0x2 is used with the
  606. PRIMUS-PC card.
  607.  
  608. The 'attach scc ... init' command must be given before the
  609. interfaces are actually attached with the following command.
  610.  
  611. _________________________________________________________________
  612. attach scc <chan> slip|kiss|nrs|ax25 <interface> <mtu> <speed>
  613.                                            <bufsize> [<callsign>]
  614. _________________________________________________________________
  615. Attach an initialized SCC port to the system.  The parameters are
  616. as follows:
  617.  
  618. <chan> The SCC channel number to attach, 0 or 1 for the first
  619. chip's A or B port, 2 or 3 for the second chip's A or B port,
  620. etc.
  621.  
  622. slip | kiss | nrs | ax25
  623. The operating mode of the interface.  'slip', 'kiss' and 'nrs'
  624. all operate the port hardware in asynchronous mode:
  625.   'slip' is Internet-standard serial line IP mode.
  626.   'kiss' generates SLIP frames containing KISS TNC commands and
  627. AX.25 packets.
  628.   'nrs' uses NET/ROM local serial link framing conventions to
  629. carry NET/ROM packets.
  630.   'ax25' puts the interface into synchronous HDLC mode that is
  631. suitable for direct connection to a half duplex radio modem.
  632.  
  633. <speed> The interface speed in bits per second (e.g. 1200).
  634. Prefix with 'd' when an external divider is available to generate
  635. the TX clock.  When the clock source is PCLK, this can be a /32
  636. divider between TRxC and RTxC.  When the clock is at RTxC, the TX
  637. rate must be supplied at TRxC.  This is needed only for full
  638. duplex synchronous operation.  When this arg is given as 'ext',
  639. the transmit and receive clocks are external, and the internal
  640. baud rate generator (BRG) and digital phase locked loop (DPLL)
  641. are not used.
  642.  
  643.  
  644. _________________________________________________________________
  645. attach slfp
  646. _________________________________________________________________
  647. Attach the Serial Line Framing Protocol packet driver.
  648.